package com.example.activity.dao;

import com.example.activity.pojo.TaskApprover;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


/**
 * @author Create by Ron
 * @date 2020/5/18 0:46
 */
@Repository
public interface TaskApproverDao extends JpaRepository<TaskApprover, Integer> {


    @Query(value = "select t from TaskApprover t where  t.taskId = ?1 ")
    TaskApprover findByTaskId(String taskKey);

}
